.class public Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "NewMediaPickerActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity$b;
    }
.end annotation


# static fields
.field private static u:Lcom/esfile/screen/recorder/picture/newpicker/i;

.field private static v:Lcom/esfile/screen/recorder/picture/newpicker/h;

.field private static w:Lcom/esfile/screen/recorder/picture/newpicker/f;


# instance fields
.field private a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;"
        }
    .end annotation
.end field

.field private c:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;"
        }
    .end annotation
.end field

.field private d:Landroid/widget/TextView;

.field private e:Landroidx/recyclerview/widget/RecyclerView;

.field private f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

.field private g:Landroid/view/View;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/view/View;

.field private j:Landroid/view/View;

.field private k:Landroid/widget/TextView;

.field private l:Landroidx/appcompat/widget/ListPopupWindow;

.field private m:Lcom/esfile/screen/recorder/ui/DuEmptyView;

.field private n:I

.field private o:I

.field private p:I

.field private q:I

.field private r:I

.field private s:Z

.field private t:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b:Ljava/util/ArrayList;

    .line 4
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    return-void
.end method

.method private A()I
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getVisibility()I

    move-result v0

    const/16 v1, 0x8

    if-ne v0, v1, :cond_0

    const/4 v0, -0x1

    return v0

    .line 2
    :cond_0
    iget v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->o:I

    const/4 v1, 0x2

    if-nez v0, :cond_1

    .line 3
    iget v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->p:I

    if-ne v0, v1, :cond_3

    .line 4
    sget v0, Les/z4;->durec_media_picker_done_without_count:I

    return v0

    :cond_1
    const/4 v2, 0x1

    if-ne v0, v2, :cond_2

    .line 5
    iget v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->p:I

    if-ne v0, v1, :cond_3

    .line 6
    sget v0, Les/z4;->durec_media_picker_done_with_count:I

    return v0

    :cond_2
    if-ne v0, v1, :cond_3

    .line 7
    iget v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->p:I

    if-ne v0, v1, :cond_3

    .line 8
    sget v0, Les/z4;->durec_media_picker_done_without_count:I

    return v0

    :cond_3
    const/4 v0, 0x0

    return v0
.end method

.method private B()Ljava/lang/String;
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->o:I

    if-nez v0, :cond_0

    .line 2
    sget v0, Les/z4;->durec_all_videos:I

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 3
    sget v0, Les/z4;->durec_all_images:I

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_1
    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    .line 4
    sget v0, Les/z4;->durec_videos_and_images:I

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_2
    const-string v0, ""

    return-object v0
.end method

.method private C()Z
    .locals 5

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    :cond_0
    const/4 v2, -0x1

    const-string v3, "data_type"

    .line 2
    invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->o:I

    const-string v3, "function"

    .line 3
    invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->p:I

    .line 4
    iget v4, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->o:I

    if-eq v4, v2, :cond_2

    if-ne v3, v2, :cond_1

    goto :goto_0

    :cond_1
    const-string v3, "max_count"

    .line 5
    invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->r:I

    const-string v3, "min_count"

    .line 6
    invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    iput v2, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->q:I

    const-string v2, "single_select"

    .line 7
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->s:Z

    const-string v2, "multi_select"

    .line 8
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->t:Z

    const/4 v0, 0x1

    return v0

    :cond_2
    :goto_0
    return v1
.end method

.method private D()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b:Ljava/util/ArrayList;

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->y()Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v2

    iget v3, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->r:I

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;-><init>(Landroid/content/Context;Ljava/util/ArrayList;Lcom/esfile/screen/recorder/media/util/y;I)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/picture/newpicker/b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/newpicker/b;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;->a(Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter$d;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->e:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    :cond_0
    return-void
.end method

.method private E()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->o:I

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/picture/newpicker/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/newpicker/a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;)V

    invoke-static {p0, v0}, Les/pa;->b(Landroidx/fragment/app/FragmentActivity;Les/pa$b;)V

    goto :goto_0

    :cond_0
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/picture/newpicker/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/newpicker/a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;)V

    invoke-static {p0, v0}, Les/pa;->a(Landroidx/fragment/app/FragmentActivity;Les/pa$b;)V

    goto :goto_0

    :cond_1
    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/picture/newpicker/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/newpicker/a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;)V

    invoke-static {p0, v0}, Les/pa;->c(Landroidx/fragment/app/FragmentActivity;Les/pa$b;)V

    :cond_2
    :goto_0
    return-void
.end method

.method private F()V
    .locals 2

    .line 1
    sget v0, Les/x4;->new_media_picker_filter_layout:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->j:Landroid/view/View;

    .line 2
    sget v0, Les/x4;->new_media_picker_filter_text:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->k:Landroid/widget/TextView;

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->z()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->j:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->durec_picker_item_folder_height:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->n:I

    return-void
.end method

.method private G()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Landroidx/appcompat/widget/ListPopupWindow;

    invoke-direct {v0, p0}, Landroidx/appcompat/widget/ListPopupWindow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    const/4 v1, -0x1

    .line 3
    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setWidth(I)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->j:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setAnchorView(Landroid/view/View;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v1, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity$b;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    invoke-direct {v1, p0, v2}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity$b;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;Ljava/util/List;)V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setModal(Z)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    const/16 v1, 0x50

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setDropDownGravity(I)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v1, Lcom/esfile/screen/recorder/picture/newpicker/e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/newpicker/e;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;)V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v1, Lcom/esfile/screen/recorder/picture/newpicker/d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/newpicker/d;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;)V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setOnDismissListener(Landroid/widget/PopupWindow$OnDismissListener;)V

    :cond_0
    return-void
.end method

.method private H()V
    .locals 3

    .line 1
    sget v0, Les/x4;->new_picker_toolbar_back:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->g:Landroid/view/View;

    .line 2
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 3
    sget v0, Les/x4;->new_picker_toolbar_title:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->h:Landroid/widget/TextView;

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->B()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 5
    sget v0, Les/x4;->new_media_picker_cover:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->i:Landroid/view/View;

    .line 6
    sget v0, Les/x4;->new_picker_toolbar_done_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->d:Landroid/widget/TextView;

    .line 7
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->t:Z

    if-eqz v1, :cond_0

    const/4 v1, 0x0

    .line 8
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f(I)V

    .line 11
    :cond_0
    sget v0, Les/x4;->new_media_picker_content:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->e:Landroidx/recyclerview/widget/RecyclerView;

    .line 12
    new-instance v1, Landroidx/recyclerview/widget/GridLayoutManager;

    const/4 v2, 0x3

    invoke-direct {v1, p0, v2}, Landroidx/recyclerview/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->e:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v1, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity$a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V

    .line 14
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->F()V

    return-void
.end method

.method private I()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->G()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {v0}, Landroidx/appcompat/widget/ListPopupWindow;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {v0}, Landroidx/appcompat/widget/ListPopupWindow;->dismiss()V

    goto :goto_0

    .line 4
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->v()V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->i:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {v0}, Landroidx/appcompat/widget/ListPopupWindow;->show()V

    :goto_0
    return-void
.end method

.method private J()V
    .locals 8

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/qa;

    .line 3
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    const/4 v5, 0x1

    if-eqz v4, :cond_2

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/qa;

    .line 4
    invoke-virtual {v4}, Les/qa;->e()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1}, Les/qa;->e()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 5
    invoke-virtual {v4}, Les/qa;->d()I

    move-result v2

    add-int/2addr v2, v5

    invoke-virtual {v4, v2}, Les/qa;->b(I)V

    const/4 v2, 0x1

    :cond_2
    if-nez v2, :cond_0

    .line 6
    new-instance v2, Les/qa;

    invoke-direct {v2}, Les/qa;-><init>()V

    .line 7
    invoke-virtual {v1}, Les/qa;->j()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Les/qa;->c(Ljava/lang/String;)V

    .line 8
    invoke-virtual {v1}, Les/qa;->e()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Les/qa;->a(Ljava/lang/String;)V

    .line 9
    invoke-virtual {v2, v5}, Les/qa;->b(I)V

    .line 10
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 11
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    sget-object v1, Lcom/esfile/screen/recorder/picture/newpicker/c;->a:Lcom/esfile/screen/recorder/picture/newpicker/c;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 12
    new-instance v0, Les/qa;

    invoke-direct {v0}, Les/qa;-><init>()V

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/qa;

    invoke-virtual {v1}, Les/qa;->j()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/qa;->c(Ljava/lang/String;)V

    .line 14
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->z()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/qa;->a(Ljava/lang/String;)V

    .line 15
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Les/qa;->b(I)V

    .line 16
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, v2, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    return-void
.end method

.method private K()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->m:Lcom/esfile/screen/recorder/ui/DuEmptyView;

    if-nez v0, :cond_0

    .line 2
    sget v0, Les/x4;->durec_empty_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewStub;

    .line 3
    invoke-virtual {v0}, Landroid/view/ViewStub;->inflate()Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/ui/DuEmptyView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->m:Lcom/esfile/screen/recorder/ui/DuEmptyView;

    .line 4
    sget v1, Les/w4;->durec_no_video_icon:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/DuEmptyView;->setIcon(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->m:Lcom/esfile/screen/recorder/ui/DuEmptyView;

    sget v1, Les/z4;->durec_no_available_video:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/DuEmptyView;->setMessage(I)V

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->m:Lcom/esfile/screen/recorder/ui/DuEmptyView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    return-void
.end method

.method static synthetic a(Les/qa;Les/qa;)I
    .locals 0

    .line 4
    invoke-virtual {p0}, Les/qa;->f()I

    move-result p0

    invoke-virtual {p1}, Les/qa;->f()I

    move-result p1

    invoke-static {p0, p1}, Les/a;->a(II)I

    move-result p0

    return p0
.end method

.method private a(ILjava/lang/String;)V
    .locals 2

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    if-nez p1, :cond_0

    .line 17
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_1

    .line 18
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_1
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/qa;

    .line 19
    invoke-virtual {v0}, Les/qa;->e()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 20
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 21
    :cond_2
    :goto_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 22
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->h:Landroid/widget/TextView;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 23
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->k:Landroid/widget/TextView;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public static synthetic a(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;Ljava/util/ArrayList;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b(Ljava/util/ArrayList;)V

    return-void
.end method

.method public static a(Lcom/esfile/screen/recorder/picture/newpicker/f;)V
    .locals 0

    .line 3
    sput-object p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->w:Lcom/esfile/screen/recorder/picture/newpicker/f;

    return-void
.end method

.method public static a(Lcom/esfile/screen/recorder/picture/newpicker/h;)V
    .locals 0

    .line 2
    sput-object p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->v:Lcom/esfile/screen/recorder/picture/newpicker/h;

    return-void
.end method

.method public static a(Lcom/esfile/screen/recorder/picture/newpicker/i;)V
    .locals 0

    .line 1
    sput-object p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->u:Lcom/esfile/screen/recorder/picture/newpicker/i;

    return-void
.end method

.method private a(Ljava/util/ArrayList;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;)V"
        }
    .end annotation

    if-nez p1, :cond_0

    .line 10
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->w()Ljava/util/ArrayList;

    move-result-object p1

    .line 11
    :cond_0
    sget-object v0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->w:Lcom/esfile/screen/recorder/picture/newpicker/f;

    if-eqz v0, :cond_1

    .line 12
    invoke-interface {v0, p1}, Lcom/esfile/screen/recorder/picture/newpicker/f;->a(Ljava/util/ArrayList;)V

    .line 13
    :cond_1
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public static synthetic a(Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;Ljava/util/ArrayList;Les/qa;Z)Z
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b(Ljava/util/ArrayList;Les/qa;Z)Z

    move-result p0

    return p0
.end method

.method private a(Ljava/util/ArrayList;Les/qa;Z)Z
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;",
            "Les/qa;",
            "Z)Z"
        }
    .end annotation

    .line 5
    sget-object v0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->v:Lcom/esfile/screen/recorder/picture/newpicker/h;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 6
    invoke-interface {v0, p1, p2, p3}, Lcom/esfile/screen/recorder/picture/newpicker/h;->a(Ljava/util/List;Les/qa;Z)Z

    move-result p2

    if-eqz p2, :cond_0

    return v1

    :cond_0
    const/4 p2, 0x1

    .line 7
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-eqz p3, :cond_1

    add-int/2addr p1, p2

    goto :goto_0

    :cond_1
    sub-int/2addr p1, p2

    .line 8
    :goto_0
    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->d:Landroid/widget/TextView;

    iget v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->q:I

    if-lt p1, v0, :cond_2

    const/4 v1, 0x1

    :cond_2
    invoke-virtual {p3, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 9
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f(I)V

    return p2
.end method

.method private b(Ljava/util/ArrayList;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_2

    .line 1
    invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->m:Lcom/esfile/screen/recorder/ui/DuEmptyView;

    if-eqz v0, :cond_1

    const/16 v1, 0x8

    .line 3
    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 4
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->J()V

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->D()V

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void

    .line 11
    :cond_2
    :goto_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->K()V

    return-void
.end method

.method private b(Ljava/util/ArrayList;Les/qa;Z)Z
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;",
            "Les/qa;",
            "Z)Z"
        }
    .end annotation

    .line 12
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->s:Z

    if-eqz v0, :cond_0

    .line 13
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c(Ljava/util/ArrayList;Les/qa;Z)Z

    move-result p1

    return p1

    .line 14
    :cond_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->t:Z

    if-eqz v0, :cond_1

    .line 15
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a(Ljava/util/ArrayList;Les/qa;Z)Z

    move-result p1

    return p1

    :cond_1
    const/4 p1, 0x1

    return p1
.end method

.method private c(Ljava/util/ArrayList;Les/qa;Z)Z
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;",
            "Les/qa;",
            "Z)Z"
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->u:Lcom/esfile/screen/recorder/picture/newpicker/i;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/esfile/screen/recorder/picture/newpicker/i;->a(Ljava/util/List;Les/qa;Z)Z

    move-result p3

    if-eqz p3, :cond_0

    const/4 p1, 0x0

    return p1

    .line 3
    :cond_0
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 4
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a(Ljava/util/ArrayList;)V

    const/4 p1, 0x1

    return p1
.end method

.method private f(I)V
    .locals 4

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->A()I

    move-result v0

    if-lez v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->d:Landroid/widget/TextView;

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v2, v3

    const/4 p1, 0x1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->r:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v2, p1

    invoke-virtual {p0, v0, v2}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method private y()Lcom/esfile/screen/recorder/media/util/y;
    .locals 5

    .line 1
    invoke-static {p0}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result v0

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/v4;->durec_picker_video_item_width:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 3
    iget v2, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->o:I

    if-nez v2, :cond_0

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Les/v4;->durec_picker_video_item_height:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    goto :goto_0

    :cond_0
    move v2, v1

    .line 5
    :goto_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Les/v4;->durec_picture_list_image_margin:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    mul-int/lit8 v3, v3, 0x4

    sub-int/2addr v0, v3

    .line 6
    div-int/lit8 v0, v0, 0x3

    mul-int v2, v2, v0

    .line 7
    div-int/2addr v2, v1

    .line 8
    new-instance v1, Lcom/esfile/screen/recorder/media/util/y;

    invoke-direct {v1, v0, v2}, Lcom/esfile/screen/recorder/media/util/y;-><init>(II)V

    return-object v1
.end method

.method private z()Ljava/lang/String;
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->B()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public synthetic a(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 0

    .line 14
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {p1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/qa;

    invoke-virtual {p1}, Les/qa;->e()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p3, p1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a(ILjava/lang/String;)V

    .line 15
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p1}, Landroidx/appcompat/widget/ListPopupWindow;->dismiss()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->g:Landroid/view/View;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->d:Landroid/widget/TextView;

    if-ne p1, v0, :cond_1

    const/4 p1, 0x0

    .line 4
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a(Ljava/util/ArrayList;)V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->j:Landroid/view/View;

    if-ne p1, v0, :cond_2

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->I()V

    :cond_2
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->C()Z

    move-result p1

    if-nez p1, :cond_0

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 4
    :cond_0
    sget p1, Les/y4;->durec_new_media_picker_layout:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->H()V

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->E()V

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "NewMediaPickerActivity"

    return-object v0
.end method

.method public v()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x5

    if-ge v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x5

    .line 2
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->l:Landroidx/appcompat/widget/ListPopupWindow;

    iget v2, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->n:I

    mul-int v0, v0, v2

    invoke-virtual {v1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setHeight(I)V

    return-void
.end method

.method public w()Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->f:Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/newpicker/adapter/NewMediaPickerAdapter;->a()Ljava/util/ArrayList;

    move-result-object v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return-object v0
.end method

.method public synthetic x()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->i:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method
